package com.ruoyi.system.domain.excelImport;

import com.ruoyi.common.utils.mstnExcel.ExcelImport;
import com.ruoyi.system.domain.MstnProject;
import lombok.Data;

@Data
public class ProjectImport {
    @ExcelImport(value = "项目名称", required = true)
    private String projectName;
    @ExcelImport(value = "项目编号", required = true)
    private String projectCode;
    @ExcelImport(value = "客户名称", required = true)
    private String customerName;

    public MstnProject toProject() {
        MstnProject mstnProject = new MstnProject();
        mstnProject.setProjectName(projectName);
        mstnProject.setProjectCode(projectCode);
        mstnProject.setCustomerName(customerName);
        return mstnProject;
    }
}
